UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

OL 8 must mount "/var/log" with the "nodev" option.


Overview

Finding ID Version Rule ID IA Controls Severity
V-248850 OL08-00-040126 SV-248850r853859_rule Medium
Description
The organization must identify authorized software programs and permit execution of authorized software. The process used to identify software programs that are authorized to execute on organizational information systems is commonly referred to as whitelisting. The "noexec" mount option causes the system to not execute binary files. This option must be used for mounting any file system not containing approved binary files, as they may be incompatible. Executing files from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access. The "nodev" mount option causes the system to not interpret character or block special devices. Executing character or block special devices from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access. The "nosuid" mount option causes the system to not execute "setuid" and "setgid" files with owner privileges. This option must be used for mounting any file system not containing approved "setuid" and "setguid" files. Executing files from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access.
STIG Date
Oracle Linux 8 Security Technical Implementation Guide 2023-12-01

Details

Check Text ( C-52284r780114_chk )
Verify "/var/log" is mounted with the "nodev" option:

$ sudo mount | grep /var/log

/dev/mapper/ol-var_log on /var/log type xfs (rw,nodev,nosuid,noexec,seclabel)

Verify that the "nodev" option is configured for /var/log:

$ sudo cat /etc/fstab | grep /var/log

/dev/mapper/ol-var_log /var/log xfs defaults,nodev,nosuid,noexec 0 0

If results are returned and the "nodev" option is missing, or if /var/log is mounted without the "nodev" option, this is a finding.
Fix Text (F-52238r780115_fix)
Configure the system so that /var/log is mounted with the "nodev" option by adding /modifying the /etc/fstab with the following line:

/dev/mapper/ol-var_log /var/log xfs defaults,nodev,nosuid,noexec 0 0